/*
package com.sxpi.xxjob.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.TaskScheduler;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;

*/
/**
 * @Author: 董伟豪
 * @Date: 2022/10/31 20:20
 *//*

@Slf4j
@Configuration
public class MyTaskJobConfiguration {

    @Bean
    public TaskScheduler taskScheduler(){
        ThreadPoolTaskScheduler threadPoolTaskScheduler = new ThreadPoolTaskScheduler();
        // 这个地方不能配置太大，看cpu的核数来配置
        threadPoolTaskScheduler.setPoolSize(10);
        return threadPoolTaskScheduler;
    }
}
*/
